import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Zong from '@/pages/Zong'
import Home from '@/pages/Home'
import Minea from '@/pages/Minea'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/',
      component: Zong, 
      children:[
        {
          path: '/Home',
          name:'Home',
          component: Home
        },
        {
          path: '/Minea',
          name:'Minea',
          component: Minea,
          meta:{
            requiresAuth:false
          }
        }
      ]
    }
  ]
})
